package cn.tedu.micro.demo.login.controller;

import cn.tedu.micro.demo.common.protocol.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class LoginController {
    @GetMapping("/send/code")
    private JsonResult sendCode(String phone){
        String uuid= UUID.randomUUID().toString();
        System.out.println(uuid);
        return JsonResult.ok("ok",uuid);
    }
}
